package com.moshang.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moshang.blog.entity.TbMessage;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @program: blog
 * @description: ${description}
 * @author: moshang
 * @create: 2018-12-21 17:04
 **/
public interface TbMessageService extends IService<TbMessage> {

    TbMessage saveOrUpdateMessage(TbMessage tbMessage, String insert, HttpServletRequest request);
    /**
     * 根据文章id查询评论总数
     * @param id
     * @return
     */
    Integer findCount(Integer id);

    Integer findMessage(Integer message);

    List<TbMessage> selectMessages(List<TbMessage> list);
}
